package org.example.demo3.server.service;

import org.example.demo3.common.result.PageResult;
import org.example.demo3.pojo.dto.RoomPageQueryDTO;
import org.example.demo3.pojo.dto.RoomRegisterDTO;
import org.example.demo3.pojo.vo.RoomVO;

public interface ChatRoomMessageService {

    /**
     * 房间注册
     * @param roomRegisterDTO
     */
    void roomRegister(RoomRegisterDTO roomRegisterDTO);

    /**
     * 房间查询
     * @param roomPageQueryDTO
     * @return
     */
    PageResult roomPageQuery(RoomPageQueryDTO roomPageQueryDTO);

    /**
     * 更新状态
     * @param status
     * @param roomId
     */
    void roomStatusUpdate(Integer status, String roomId, String hostName);


    /**
     * 房间名查询
     * @param roomId
     * @return
     */
    RoomVO roomNameQuery(String roomId);

    /**
     * 房间删除
     * @param roomId
     */
    void roomDelete(String roomId);
}
